import Vue from 'vue'
import Router from 'vue-router'
import index from '@/pages/index'
import online from '@/pages/online'
import program from '@/pages/program'
import company from '@/pages/company'
import mine from '@/pages/mine'
import detail from '@/pages/detail'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/index',
    },
    {
      path: '/index',
      component: index
    },
    {
      path: '/online',
      component: online
    },
    {
      path: '/program',
      component: program
    },
    {
      path: '/company',
      component: company
    },
    {
      path: '/mine',
      component: mine
    },
    {
      path: '/detail',
      component: detail
    }

  ]
})
